<?php
App::uses('AppModel', 'Model');

class Resenha extends AppModel {

	public $displayField = 'resenha';
/**
 * Validation rules
 *
 * @var array
 */
	public $validate = array(
		'alunos_id' => array(
			'numeric' => array(
				'rule' => array('numeric'),
			),
		),
		'livros_id' => array(
			'numeric' => array(
				'rule' => array('numeric'),
			),
		),
	);

	//The Associations below have been created with all possible keys, those that are not needed can be removed

/**
 * belongsTo associations
 *
 * @var array
 */
	public $belongsTo = array(
		'Aluno' => array(
			'className' => 'Aluno',
			'foreignKey' => 'alunos_id',
		),
		'Livro' => array(
			'className' => 'Livro',
			'foreignKey' => 'livros_id',
		)
	);
}
